from django.urls import path
from . import views

app_name = 'blog'

urlpatterns = [
    path('', views.index),
    path('blog/info/<blog_id>', views.blog_details, name='blog_details'),
    path('blog/publish/', views.publish_blog, name='publish_blog'),
    path('blog/comment/publish', views.publish_blog_comment, name='publish_blog_comment'),

    path('blog/list/', views.blog_list, name='blog_list'),#博客列表
    path('blog/create/', views.blog_create, name='blog_create'),  # 创建新博客
    path('blog/update/<int:id>/', views.blog_update, name='blog_update'),  # 更新博客
    path('blog/delete/<int:id>/', views.blog_delete, name='blog_delete'),  # 删除博客
    path('blog/<int:id>/', views.blog_detail, name='blog_detail'),  # 博客详情


]
